﻿using System;
using System.Collections;
using System.Collections.Generic;
using DBA.Common;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    TeacherPublicService
    ///开发者      :    
    ///建立时间    :    2012-8-26 7:51:59
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-8-26 7:51:59
    /// </summary>
        [OrmPropertyAttribute(TableName = "TeacherPublicService",PrimaryKey = "TpsID",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class TeacherPublicService
    {
        #region 构造函数
        public TeacherPublicService(){}
        
        public TeacherPublicService(int TpsID,int EmployeeID,int Work,short Grade,string Demo,string Year)
        {
           this._TpsID = TpsID;
           this._EmployeeID = EmployeeID;
           this._Work = Work;
           this._Grade = Grade;
           this._Demo = Demo;
           this._Year = Year;

        }
        #endregion
        
        #region 成员
        private int _TpsID;
        private int _EmployeeID;
        private int _Work;
        private short _Grade;
        private string _Demo;
        private string _Year;
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int TpsID
        {
            get { return _TpsID; }
            set { _TpsID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int Work
        {
            get { return _Work; }
            set { _Work = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "smallint",ParameterLength = 2,IsNull = "1")]
        public virtual short Grade
        {
            get { return _Grade; }
            set { _Grade = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 200,IsNull = "1")]
        public virtual string Demo
        {
            get { return _Demo; }
            set { _Demo = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "varchar",ParameterLength = 10,IsNull = "1")]
        public virtual string Year
        {
            get { return _Year; }
            set { _Year = value; }
        }
        #endregion
    }
}